package top.kaoshanji.p2ch13c;

/**
 * 代码清单-p2ch13c-142页a：原型模式通用代码
 * @author kaoshanji
 * ^_^
 * create time 2025/3/23 10:26
 */
public class PrototypeClass implements Cloneable {

    // 覆写父类 Object 方法
    @Override
    public PrototypeClass clone() {
        PrototypeClass prototypeClass = null;
        try {
            prototypeClass = (PrototypeClass) super.clone();
        } catch (CloneNotSupportedException e) {
            ///
        }

        return prototypeClass;
    }

}
